package com.sikaryofficial.backend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sikaryofficial.backend.domain.entity.BrandTasteEvaluateViews;
import com.sikaryofficial.backend.mapper.BrandTasteEvaluateViewsMapper;
import com.sikaryofficial.backend.service.IBrandTasteEvaluateViewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 评价查阅记录Service业务层处理
 *
 * @author qinjinyuan
 * @date 2023-11-01
 */
@Service
public class BrandTasteEvaluateViewsServiceImpl extends ServiceImpl<BrandTasteEvaluateViewsMapper, BrandTasteEvaluateViews> implements IBrandTasteEvaluateViewsService {

    @Autowired
    private BrandTasteEvaluateViewsMapper evaluateViewsMapper;

    @Override
    public int updateByEntity(BrandTasteEvaluateViews result, Integer tenantId) {
        return evaluateViewsMapper.updateByEntity(result, tenantId);
    }

    @Override
    public int insertViews(BrandTasteEvaluateViews result) {
        return evaluateViewsMapper.insertViews(result);
    }

}
